package com.weiaibenpao.demo.chislim.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/1/5.
 */

public class Message implements Parcelable{
    private String userImage;  //用户头像
    private String userName;   //用户昵称
    private String comText;    //内容
    private String infoUrl;
    private int infoId;
    private int humorId =0;
    private int userId =0;
    private int infoUserId =0;
    private int infoType =0; //类型 0 点赞 1 评论 2 回复评论 3举报
    private int commentId =0;
    private long createTime =0;

    protected Message(Parcel in) {
        userImage = in.readString();
        userName = in.readString();
        comText = in.readString();
        infoUrl = in.readString();
        infoId = in.readInt();
        humorId = in.readInt();
        userId = in.readInt();
        infoUserId = in.readInt();
        infoType = in.readInt();
        commentId = in.readInt();
        createTime = in.readLong();
    }

    public static final Creator<Message> CREATOR = new Creator<Message>() {
        @Override
        public Message createFromParcel(Parcel in) {
            return new Message(in);
        }

        @Override
        public Message[] newArray(int size) {
            return new Message[size];
        }
    };

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getComText() {
        return comText;
    }

    public void setComText(String comText) {
        this.comText = comText;
    }

    public String getInfoUrl() {
        return infoUrl;
    }

    public void setInfoUrl(String infoUrl) {
        this.infoUrl = infoUrl;
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    public int getHumorId() {
        return humorId;
    }

    public void setHumorId(int humorId) {
        this.humorId = humorId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getInfoUserId() {
        return infoUserId;
    }

    public void setInfoUserId(int infoUserId) {
        this.infoUserId = infoUserId;
    }

    public int getInfoType() {
        return infoType;
    }

    public void setInfoType(int infoType) {
        this.infoType = infoType;
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userImage);
        dest.writeString(userName);
        dest.writeString(comText);
        dest.writeString(infoUrl);
        dest.writeInt(infoId);
        dest.writeInt(humorId);
        dest.writeInt(userId);
        dest.writeInt(infoUserId);
        dest.writeInt(infoType);
        dest.writeInt(commentId);
        dest.writeLong(createTime);
    }
}
